package com.woniu.p2p.serviceImpl;

import com.woniu.p2p.mapper.RolesMapper;
import com.woniu.p2p.service.RoleService;
import com.woniu.p2p.vo.RoleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 86152
 * @create 2020/8/14
 * @since 1.0.0
 */
@Service
public class RoleServiceImp implements RoleService {
    @Autowired
    RolesMapper rolesMapper;

    @Override
    public List<RoleVo> findAllByAdminId(Integer adminId) {
        return rolesMapper.selectByAdminId(adminId);
    }
}
